<template>
  <view class="bg-white ss-r-10 ss-p-x-4">
    <view class="head">
      <slot name="title">
        <view class="title ss-line-1 ss-m-r-4">{{ title }}</view>
      </slot>
      <slot name="status">
        <view class="status" :style="{color:statusColor}">{{ statusText }}</view>
      </slot>
    </view>
    <view class="content">
      <slot />
    </view>
  </view>
</template>

<script setup>
import sheep from '@/sheep'

const props = defineProps({
  title: {
    type: String,
    default: ''
  },
  statusText: {
    type: String,
    default: '未开始'
  },
  statusColor: {
	 type: String,
	 default: 'red'
  }
})
const emit = defineEmits('clickItme')
const onClick = (data) => {
  emit('clickItme', data)
}

</script>

<style lang="scss" scoped>
.head{
	display: flex;
	justify-content: space-between;
	padding: 30rpx 20rpx;
	border-bottom: 1rpx solid #E7E7E7;
	.title{
		color:#000;
		font-size: 34rpx;
		flex: 1;
	}
	.status{
		font-size:26rpx;
		margin-top: 5rpx;
	}
}
.content{
	padding: 10rpx 20rpx;
	padding-bottom: 20rpx;
	font-size: 26rpx;
}

</style>
